API for developers
H2H process
Payment processing according to the scheme Host-to-host
Endpoint: /api/h2h/process
Parameters passed:
| Field | Field description |
|---|---|
| payment_id | Tracking number of the payment order in the client's accounting system |
| session | Session H2H identifier received during payment processing |
| h2h_data |
An array of populated data that was requested in the step /api/h2h/start The data is transmitted as an array: {field_name} => {field_value} |
Example request: { "session": "1234", "payment_id": "123434567", "h2h_data": { "cardHolder": "Card Holder", "cardNumber": "4444111144441111", "month": "01", "year": "30", "cvv": "001" }
Success Example: { "session": "0799c091-3e2f-4f41-91fd-c410e9b0978f", "payment_id": "8d33a677-74aa-4d17-9efc-e35a4bd3cb8c", "result": true, "final": false, "data": { "threeDsFrom": "", ...... } }
List of returned fields:
| Field | Field description | ||||
|---|---|---|---|---|---|
| error | Error description | ||||
| errors |
An array with errors in the filled data. The field is filled in as follows: {field_name} => {error_text}. field_name - identifier of the field in which the error was made error_text - Error description |
||||
| session | Session Identifier Within Which the Query Is Being Executed | ||||
| result | Result of the query execution (successful execution or not) | ||||
| next_step | next step editor (/api/h2h/{Step Idetifcatorr}) where to send the filled data received in the field data | ||||
| final | The session is in the final stages or Not | ||||
| data |
An array of data required for subsequent processing of the operation. The list depends on the currency in which the invoice was issued.
|